package com.example.entity;

public class House {
    private int area;
    private String address;

    public House(int area, String address) {
        this.area = area;
        this.address = address;
    }

    public void closeDoor() {
        System.out.println("门已关");
    }

    @Override
    public String toString() {
        return "House{" +
                "area=" + area +
                ", address='" + address + '\'' +
                '}';
    }
}
